package AionCrafter.data.list;

import java.util.HashMap;
import java.util.Map;

import AionCrafter.data.Material;

public class MaterialList {
	
	private Map<String,Material> materials = new HashMap<String,Material>();
	
	public void addMaterial(String id, Material m){
		materials.put(id, m);
	}
	
	public void setMaterials(Map<String,Material> r){
		if(materials == null){
			materials = new HashMap<String,Material>();
		}
		materials = r;
	}
	
	public Map<String,Material> getMaterials(){
		return materials;
	}
}
